package com.dao.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.model.sys.SysRoleModulePermission;

public interface SysRoleModulePermissionMapper {
	int deleteByPrimaryKey(@Param("roleid") String roleid,
			@Param("moduleid") String moduleid,
			@Param("permission") String permission);

	int deleteByModuleid(@Param("moduleid") String moduleid);

	int deleteByRoleid(@Param("roleid") String roleid);

	int deleteByIdPermission(@Param("moduleid") String moduleid,
			@Param("permission") String permission);

	int insert(SysRoleModulePermission record);

	List<SysRoleModulePermission> selectAll();

	List<SysRoleModulePermission> selectAllByRoleid(
			@Param("roleid") String roleid);
}